package com.intel.factorytest.activity;

import android.content.Intent;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceScreen;

import com.intel.factorytest.R;

public class ServiceInfoMenuActivity extends PreferenceActivity{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        addPreferencesFromResource(R.xml.serviceinfopref);
    }

    @Override
    public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen,
            Preference preference) {
        
        switch(preference.getOrder()){
            case 0:
            {
                //Software info
                Intent i = new Intent(this,SoftwareInfo_pref.class);
                startActivity(i);
            }
                break;
            default:
                break;
        }
        
        return super.onPreferenceTreeClick(preferenceScreen, preference);
    }
    
}
